﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace ProjetoComperio.DataLayer.Entities
{
    public class Student : AcademicPerson
    {
        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        [DisplayName("Data início")]
        public virtual DateTime StartDate { get; set; }

        #region Course
        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
      
        public virtual int CourseID { get; set; }

          [DisplayName("Curso")]
        public virtual Course Course { get; set; }
        #endregion
        
             
    }
}
